package com.team.bus.module.dd.model;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "tdd",schema = "miaoxu")
public class Dd {

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "id", unique = true, nullable = false, length = 50)
	private String id;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "pid")
	private Dd dd;
	@Column(name = "text", length = 500)
	private String text;
	@Column(name = "iconcls", length = 50)
	private String iconcls;
	@Column(name = "VALUE", length = 600)
	private String value;
	@Column(name = "orderno")
	private int orderno;
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dd")
	private Set<Dd> dds = new HashSet<Dd>(0);
	@Column(name = "isTitle", length = 20)
	private String isTitle;
	@Column(name = "isHot", length = 20)
	private String isHot;
    @Column(name = "leavl", length = 200)
    private String leavl;
    @Column(name = "data_group", length = 100)
    private String data_group;              //ABCDEFG
    @Column(name = "data_tags",  length = 100)
    private String data_tags;              //拼音
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Dd getDd() {
		return dd;
	}
	public void setDd(Dd dd) {
		this.dd = dd;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getIconcls() {
		return iconcls;
	}
	public void setIconcls(String iconcls) {
		this.iconcls = iconcls;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public int getOrderno() {
		return orderno;
	}
	public void setOrderno(int orderno) {
		this.orderno = orderno;
	}
	public Set<Dd> getDds() {
		return dds;
	}
	public void setDds(Set<Dd> dds) {
		this.dds = dds;
	}
	public String getIsTitle() {
		return isTitle;
	}
	public void setIsTitle(String isTitle) {
		this.isTitle = isTitle;
	}
	public String getIsHot() {
		return isHot;
	}
	public void setIsHot(String isHot) {
		this.isHot = isHot;
	}
    public String getLeavl() {
        return leavl;
    }
    public void setLeavl(String leavl) {
        this.leavl = leavl;
    }

    public String getData_group() {
        return data_group;
    }

    public void setData_group(String data_group) {
        this.data_group = data_group;
    }

    public String getData_tags() {
        return data_tags;
    }

    public void setData_tags(String data_tags) {
        this.data_tags = data_tags;
    }
}
